package com.zelin.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Author: Feng.Wang
 * @Company: Zelin.ShenZhen
 * @Description:
 * @Date: Create in 2019/3/27 15:34
 */
@Component
@RabbitListener(queues = "java")
public class Consumer2 {
    @RabbitHandler
    public void getMessage(String msg){
        System.out.println("java得到消息：" + msg);
    }
}
